void depl_cavalier(GAME *game, int l2, int c2)
{
    if (wiringPiSetup () == -1)
    {
        printf("marche pas");
    }
    else
    {
        int l,c,cmpt[2];
		int sens[2]={0,0};

        //initialisation des pins moteurs
        raz_pin(game);

		// On déplace l'aimant sous la piece
		l=game->cur_sel_pos.l-game->cur_aim_pos.l;
		c=game->cur_sel_pos.c-game->cur_aim_pos.c;

		fnc_dpl(game,l,c, game->ppc);
		
		l=l2-game->cur_sel_pos.l;
		c=c2_arrive[1]-game->cur_sel_pos.c;
		if(l==1 || l==-1)
		{
			fnc_dpl(game, l, 0 , game->ppc/2);
			fnc_dpl(game, 0 , c, game->ppc);
			fnc_dpl(game, l, 0 , game->ppc/2);
		}
		else if(c==1 || c==-1)
		{
			fnc_dpl(game, 0, c , game->ppc/2);
			fnc_dpl(game, l, 0 , game->ppc);
			fnc_dpl(game, 0, c , game->ppc/2);
		}

		//fnc_dpl(c,l);
		//On enregistre la nouvelle position de l'aiment
		game->cur_aim_pos.l=l;
		game->cur_aim_pos.c=c;

	}
}